<%@page import="org.apache.commons.lang3.StringUtils"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="user-index-head.jsp"%> 
<%
	String str = (String)request.getAttribute("ret");
	if(!StringUtils.isEmpty(str)){
		out.print("<script>alert('"+str+"');</script>");
	}
%>
 <link rel="stylesheet" href="<%=path%>/js/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="<%=path%>/js/kindeditor/plugins/code/prettify.css" />
<script src="<%=path%>/js/kindeditor/kindeditor.js" type="text/javascript"></script>
<script src="<%=path%>/js/kindeditor/lang/zh_CN.js" type="text/javascript"></script>
<script src="<%=path%>/js/kindeditor/plugins/code/prettify.js" type="text/javascript"></script>
<script>

var editor;
KindEditor.ready(function(K) {
editor = K.create('#info', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : false,
items : [
'source','undo','redo','copy','plainpaste','wordpaste','clearhtml','quickformat','selectall','fullscreen','fontname', 'fontsize','subscript','superscript','indent','outdent','|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline','hr',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'link', 'unlink','baidumap','lineheight','table','anchor','preview','print','template','code','cut']
});

});
</script>
<div class="content">
         
          <div class="cLineB">
              <h4 class="left">自定义回复信息</h4>
              <div class="clr"></div>
          </div>
          <div class="cLine">
              <div class="pageNavigator left">
  <a href='<%=path%>/user/text!add.do' title='新增文本自定义回复' class='btnGrayS vm bigbtn'><img src="<%=path%>/images/text.png" class="vm" />新增文本自定义回复</a>　
  <a href='<%=path%>/user/img!add.do' title='新增图文自定义回复' class='btnGrayS vm bigbtn'><img src="<%=path%>/images/pic.png" class="vm" />新增图文自定义回复</a>　
              
            </div>
          
            <div class="clr"></div>
          </div>
          <div class="msgWrap">
            <TABLE class="ListProduct" border="0" cellSpacing="0" cellPadding="0" width="100%">
              <THEAD>
                <TR>
					<TH class="keywords">关键词</TH>
					<TH class="answer">回答</TH>
                    <TH  class="category" >分类</TH>
                    <TH class="time">浏览次数</TH>
					<TH class="time">时间</TH>
					<TH class="edit norightborder">操作</TH>
                </TR>
              </THEAD>
              <TBODY>
                <TR></TR>

	<c:forEach items="${page.content}" var="vo">				
				<tr>
                  <td>${vo.keyword}</td>
                  <td><div class="answer_text"><img src="<%=path%>/images/pic.png" class="vm" title="图文自定义内容">${vo.img.info }</div></td>
                  <td>${vo.img.classify.name }</td>
                  <td>${vo.img.click}</td>
                    <td>${vo.img.updateTime}</td>
                   <td class="norightborder">
				   <a href="<%=path%>/user/img!edit.do?id=${vo.id}" title="编辑图文自定义回复">编辑</a>
				   <a href="<%=path%>/user/img!delete.do?id=${vo.id}">删除</a></td>
                </tr>
				</c:forEach>
                              
              </TBODY>
            </TABLE>

           <script>
   function checkvotethis() {
var aa=document.getElementsByName('del_id[]');
var mnum = aa.length;
j=0;
for(i=0;i<mnum;i++){
if(aa[i].checked){
j++;
}
}
if(j>0) {
document.getElementById('info').submit();
} else {
alert('未选中任何文章或回复！')
}
}

   </script>
          </div>
          <div class="cLine">
            <div class="pageNavigator right">
                 <div class="pages">{iMicro:$page}</div>
              </div>
            <div class="clr"></div>
          </div>
        </div>

        <div class="clr"></div>
      </div>
    </div>
  </div>
  <script>

function checkAll(form, name) {
for(var i = 0; i < form.elements.length; i++) {
var e = form.elements[i];
if(e.name.match(name)) {
e.checked = form.elements['chkall'].checked;
}
}
}


  </script>
  <!--底部-->
  	</div>
<include file="Public:footer"/>